(when (maybe-require-package 'lsp-mode)
  (setq lsp-vetur-format-default-formatter-css "none")
  (setq lsp-vetur-format-default-formatter-html "none")
  (setq lsp-vetur-format-default-formatter-js "none")
  (setq lsp-vetur-validation-template nil))

;; npm install -g vue-language-server
;; https://github.com/vuejs/vetur/pull/1730/commits/864ffc4dfaa12bda48d88a82af595d8c6bb6da0d


(when (maybe-require-package 'vue-mode)
  (add-hook 'vue-mode-hook #'lsp)

  ;; C-j or C-return to emmet-expand-line
  (maybe-require-package 'emmet-mode)
  (add-hook 'vue-mode-hook #'emmet-mode))

(add-auto-mode 'vue-mode "\\.vue\\'")

;; this will affect consult list
;; (push 'comany-capf company-backends)


(provide 'init-vue)
;;; init-vue.el ends here
